package com.fiberhome.app.network;

/**
 * Created by Deed on 2018/1/29.
 */

public abstract class CacheBuilder implements IBuilder {
    public static final int CACHE_NO = 0;
    public static final int CACHE_ONLY = 1;
    public static final int CACHE_POWER = 2;
    /**
     *
     */
    int cache;
    //
    long cacheOverdue = 600000;

    /**
     * @param cache boolean
     * @return CacheBuilder
     */
    public CacheBuilder useCache(int cache) {
        this.cache = cache;
        return this;
    }

    /**
     * @param cacheOverdue long
     * @return HttpBuilder
     */
    public CacheBuilder cacheOverdue(long cacheOverdue) {
        this.cacheOverdue = cacheOverdue;
        return this;
    }
}
